package cn.earas.htmlX;


import cn.earas.htmlX.frame.WelcomeFrame;
import cn.earas.htmlX.model.UrlModel;
import cn.earas.htmlX.service.Core;
import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;

import javax.swing.*;
import java.util.Properties;


public class Main {

    public static Properties pps = new Properties();

    public static Core core;

    public static void main(String args[]) {
        try {
            //设置本属性将改变窗口边框样式定义
            BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.translucencyAppleLike;
            UIManager.put("RootPane.setupButtonVisible", false);
            org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper.launchBeautyEyeLNF();
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("加载主题资源失败，错误信息："+e.getMessage());
        }

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new WelcomeFrame().setVisible(true);
            }
        });

//        UrlModel urlModel = new UrlModel();
//        urlModel.setUrl("http://pearsearch.org");
//        urlModel.setName("index.html");
//        Core core = new Core();
//        core.enableAllUrl(0);
//        core.execute(urlModel,"E:/htmlX");
    }
}
